package com.xiaozhaovip.demo.service;

import com.xiaozhaovip.demo.intf.entity.YueQiLaiInfo;
import com.xiaozhaovip.demo.intf.mapper.YueQiLaiInfoServiceMapper;
import com.xiaozhaovip.demo.intf.service.YueQiLaiInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 活动信息 业务层实现
 *
 * @author Cauli
 */
@Service
public class YueQiLaiInfoServiceImpl implements YueQiLaiInfoService {
    @Resource
    private YueQiLaiInfoServiceMapper yueQiLaiInfoServiceMapper;

    @Override
    public int insert(YueQiLaiInfo info) {
        return yueQiLaiInfoServiceMapper.insert(info);
    }

    @Override
    public YueQiLaiInfo loadById(int id) {
        return yueQiLaiInfoServiceMapper.loadById(id);
    }

    @Override
    public int update(YueQiLaiInfo info) {
        return yueQiLaiInfoServiceMapper.update(info);
    }

    @Override
    public int incrCollectNumById(int id) {
        return yueQiLaiInfoServiceMapper.incrCollectNumById(id);
    }

    @Override
    public int decrCollectNumById(int id) {
        return yueQiLaiInfoServiceMapper.decrCollectNumById(id);
    }

    @Override
    public int incrJoinNumById(int id) {
        return yueQiLaiInfoServiceMapper.incrJoinNumById(id);
    }

    @Override
    public int decrJoinNumById(int id) {
        return yueQiLaiInfoServiceMapper.decrJoinNumById(id);
    }

    @Override
    public int getLastInsertId() {
        return yueQiLaiInfoServiceMapper.getLastInsertId();
    }
}
